package xyz.scootaloo.mono.base

import org.apache.juli.logging.LogFactory
import org.junit.Test
import xyz.scootaloo.mono.base.util.DevUtil

/**
 * @author flutterdash@qq.com
 * @since 2021/7/29 6:35
 */
class DebugTest {

    val log = LogFactory.getLog(this.javaClass)

    @Test
    fun testLogDebug() {
        if (log.isDebugEnabled) {
            println("debug")
        } else {
            println("run")
        }
    }

    @Test
    fun test() {
        if (DevUtil.isDebugging) {
            println("debug")
        } else {
            println("run")
        }
    }

}
